﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="NavigationItem.cs" company="Anton Frattaroli">
//   Copyright (c) Anton Frattaroli. All rights reserved.
// </copyright>
// <summary>
//   Defines the NavigationItem class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Lidocaine
{
    /// <summary>
    /// Defines the NavigationItem class.
    /// </summary>
    public class NavigationItem
    {
        #region Fields
        /// <summary>
        /// The text of the navigation item.
        /// </summary>
        private string text;

        /// <summary>
        /// The link of the navigation item.
        /// </summary>
        private string link;

        /// <summary>
        /// The order of the navigation item.
        /// </summary>
        private int ordinal;
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the NavigationItem class.
        /// </summary>
        public NavigationItem()
        {
        }

        /// <summary>
        /// Initializes a new instance of the NavigationItem class.
        /// </summary>
        /// <param name="text">The text of the navigation item.</param>
        /// <param name="link">The link of the navigation item.</param>
        /// <param name="ordinal">The ordinal of the navigation item.</param>
        public NavigationItem(string text, string link, int ordinal)
        {
            this.text = text;
            this.link = link;
            this.ordinal = ordinal;
        }
        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets the navigation item's text.
        /// </summary>
        public string Text
        {
            get
            {
                return this.text;
            }

            set
            {
                this.text = value;
            }
        }

        /// <summary>
        /// Gets or sets the navigation item's link.
        /// </summary>
        public string Link
        {
            get
            {
                return this.link;
            }

            set
            {
                this.link = value;
            }
        }

        /// <summary>
        /// Gets or sets the navigation item's ordinal.
        /// </summary>
        public int Ordinal
        {
            get
            {
                return this.ordinal;
            }

            set
            {
                this.ordinal = value;
            }
        }
        #endregion
    }
}